/*
 * CreateServerButtonListener.h
 *
 *  Created on: Oct 24, 2011
 *      Author: gonzalo
 */

#ifndef CREATESERVERBUTTONLISTENER_H_
#define CREATESERVERBUTTONLISTENER_H_


#include "../../SDLtoolkit/Listener.h"
#include "../../SDLtoolkit/widgets/Textbox.h"
#include "../../SDLtoolkit/widgets/TextScrollBar.h"
#include "SDL/SDL.h"

class CreateServerButtonListener: public Listener {
public:
	CreateServerButtonListener(Textbox* host,TextScrollBar* scenarioName);
	virtual ~CreateServerButtonListener();


	void execute();

private:
	void pushEventsToOpenEditSceneWindow(std::string host,std::string scenarioName);

	Textbox* host;
	TextScrollBar* scenarioName;
};

#endif /* CREATESERVERBUTTONLISTENER_H_ */
